package com.alibaba.citrus.ots.sales.plan.functions.departmentcontractredline;

import com.alibaba.citrus.ots.sales.plan.repository.DepartmentContractRedLineRepository;
import com.alibaba.citrus.ots.sales.plan.sdo.DepartmentContractRedLineSDO;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wangyibing
 */
@Component
public class DepartmentContractRedLineAbility {
    @Resource
    private DepartmentContractRedLineRepository departmentContractRedLineRepository;

    public Integer batchCreateDepartmentContractRedLine(List<DepartmentContractRedLineSDO> departmentContractRedLineSDOS) {
        return departmentContractRedLineRepository.batchDepartmentContractRedLine(departmentContractRedLineSDOS);
    }
}
